package com.hckjsec.website.service.impl;

import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.hckjsec.website.mapper.WebSiteLearningMapper;
import com.hckjsec.website.domain.WebSiteLearning;
import com.hckjsec.website.service.IWebSiteLearningService;

/**
 * 学术研究Service业务层处理
 * 
 * @author cyt
 * @date 2021-10-18
 */
@Service
public class WebSiteLearningServiceImpl implements IWebSiteLearningService 
{
    @Autowired
    private WebSiteLearningMapper webSiteLearningMapper;

    /**
     * 查询学术研究
     * 
     * @param id 学术研究ID
     * @return 学术研究
     */
    @Override
    public WebSiteLearning selectWebSiteLearningById(Long id)
    {
        return webSiteLearningMapper.selectWebSiteLearningById(id);
    }

    /**
     * 查询学术研究列表
     * 
     * @param webSiteLearning 学术研究
     * @return 学术研究
     */
    @Override
    public List<WebSiteLearning> selectWebSiteLearningList(WebSiteLearning webSiteLearning)
    {
        return webSiteLearningMapper.selectWebSiteLearningList(webSiteLearning);
    }

    /**
     * 新增学术研究
     * 
     * @param webSiteLearning 学术研究
     * @return 结果
     */
    @Override
    public int insertWebSiteLearning(WebSiteLearning webSiteLearning)
    {
        return webSiteLearningMapper.insertWebSiteLearning(webSiteLearning);
    }

    /**
     * 修改学术研究
     * 
     * @param webSiteLearning 学术研究
     * @return 结果
     */
    @Override
    public int updateWebSiteLearning(WebSiteLearning webSiteLearning)
    {
        return webSiteLearningMapper.updateWebSiteLearning(webSiteLearning);
    }

    /**
     * 批量删除学术研究
     * 
     * @param ids 需要删除的学术研究ID
     * @return 结果
     */
    @Override
    public int deleteWebSiteLearningByIds(Long[] ids)
    {
        return webSiteLearningMapper.deleteWebSiteLearningByIds(ids);
    }

    /**
     * 删除学术研究信息
     * 
     * @param id 学术研究ID
     * @return 结果
     */
    @Override
    public int deleteWebSiteLearningById(Long id)
    {
        return webSiteLearningMapper.deleteWebSiteLearningById(id);
    }
}
